package com.sbpm.crmbpm.client.handlers;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.sbpm.crmbpm.client.grid.CompanyGrid;
import com.sbpm.crmbpm.client.panels.CompanySearchPanel;
import com.sbpm.crmbpm.client.services.CompanyManagement;
import com.sbpm.crmbpm.client.services.CompanyManagementAsync;
import com.sbpm.crmbpm.client.util.CompanySearchUtils;
import com.sbpm.crmbpm.client.util.SimpleAsyncCallback;
import com.sbpm.crmbpm.shared.data.client.Company;
import com.sencha.gxt.widget.core.client.event.SelectEvent;

import java.util.List;

public class SearchClientClickHandler implements SelectEvent.SelectHandler
{

    private CompanySearchUtils utils;

    public SearchClientClickHandler( CompanySearchUtils utils )
    {
        this.utils = utils;
    }

    @Override
    public void onSelect( SelectEvent event )
    {
        utils.search();
    }
}
